package com.yh.csx.crm.service.response;

import com.yh.csx.crm.vo.CustomerDetailVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author Huang Zhaoping
 * @date 2019/3/1
 */
@Data
public class AppCustomerDetailResp extends CustomerDetailVo {

    @ApiModelProperty("归属省区名称")
    private String salesProvinceName;

    @ApiModelProperty("客户分类全名")
    private String categoryFullName;

    @ApiModelProperty("今日任务列表")
    private List<AppSalesTask> taskList;

    @ApiModelProperty("拜访记录列表")
    private List<AppCustomerVisitResp> visitList;

    @ApiModelProperty("文件列表")
    private List<FileInfo> fileList;

    @ApiModelProperty("审核情况")
    private ApprovalState approvalState;

    @Data
    public static class FileInfo {

        @ApiModelProperty("文件名")
        private String fileName;

        @ApiModelProperty("文件URL")
        private String fileUrl;

    }

    @Data
    public static class ApprovalState {

        @ApiModelProperty("审批ID")
        private Long approvalId;

        @ApiModelProperty("审批ID")
        private String lastNode;

        @ApiModelProperty("审批ID")
        private String lastName;

        @ApiModelProperty("当前节点")
        private String currentNode;

        @ApiModelProperty("当前名称")
        private String currentName;

        @ApiModelProperty("审批ID")
        private String nextNode;

        @ApiModelProperty("审批ID")
        private String nextName;
    }


}
